<?php if(isset($photo_id)): ?>

  <p>Thank you <strong><?php echo safe_output($_POST['photo']['fullname']); ?></strong> Your photo is below please click on it.</p>
   <a href="index.php?view=show&id=<?php echo $photo_id ?>"><img src="photos/medium/<?php echo $photo_id ?>.jpg" alt="your photo!" /></a>
<?php endif; ?>
